$(document).on('click','.layui-view-img',function(){
    let src = $(this).attr('src');
    layer.open({
        type: 1,
        title: false,
        closeBtn: 1,
        area: ['auto'],
        shadeClose: true,
        content: '<img src="'+src +'" class="layui-view-big-img">'
    });
})

$(document).on('blur','.sort',function(){
    let id = $(this).attr('data-id');
    let url = $(this).attr('data-url');
    let val = $(this).val();
    $.post(url,{id:id,sort:val},function(res){
        if(res.code==1){
            layer.msg(res.msg,{icon:1});
            return false;
        }
        layer.msg(res.msg,{icon:2});
    });

})
